<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="../vue.js"></script>


  <style>
    .A {
      width: 300px;
      height: 300px;
      background: orange;
    }

    .B {
      width: 200px;
      height: 200px;
      background: rgb(13, 156, 20);
    }

    .C {
      width: 100px;
      height: 100px;
      background: rgb(16, 13, 206);
    }
  </style>
</head>

<body>

  <div id="app">

    <div class="A" @click.capture="clickA">
      A
      <div class="B" @click.capture="clickB">
        B
        <div class="C" @click.capture="clickC">
          C
        </div>
      </div>
    </div>


    <a @click.prevent href="http://www.baidu.com">link</a>


    <button @click.once="handclick">click</button>

  </div>




  <script>

    var vm = new Vue({
      el: '#app',
      data: {
        count: 0
      },
      methods: {
        clickA() {
          console.log('A')
        },
        clickB() {
          console.log('B')
        },
        clickC() {
          console.log('C')
        },
        handclick() {
          console.log('gp16')
        }

      }
    })

  </script>

</body>

</html>